<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 梁家源
  Date: 2021/6/4
  Time: 12:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/css/layui.css"/>
    <!-- layUI的核心JS文件 -->
    <script src="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/layui.js" type="text/javascript"
            charset="UTF-8"></script>
    <script src="${pageContext.request.contextPath}/static/script/jquery-1.7.2.js" type="text/javascript"
            charset="UTF-8"></script>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin: 20px" >
    <legend style="margin-left: 50px;">已下架商品</legend>
</fieldset>
<div class="layui-container">
    <div class="layui-row" >
        <table class="layui-table" lay-skin="nob">
            <colgroup>
                <col width="140px"><!--商品图片-->
                <col width="120px"><!--商品名称-->
                <col width="80px"><!--用户id-->
                <col width="90px"><!--处理人id-->
                <col width="90px"><!--处理人名-->
                <col width="240px"><!--时间-->
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>商品图片</th>
                <th>商品名称</th>
                <th>用户ID</th>
                <th>处理人ID</th>
                <th>处理人名称</th>
                <th>下架时间</th>
                <th>下架原因</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="osGood" items="${osGoodsList}">
                <tr>
                    <td>
                        <c:if test="${osGood.osgsrc==null}">
                            <img src="${pageContext.request.contextPath}/static/images/white1.jpg"
                                 style="width: 100px;height: 100px;">
                        </c:if>
                        <c:if test="${osGood.osgsrc!=null}">
                            <img src="${osGood.osgsrc}"
                                 style="width: 100px;height: 100px;">
                        </c:if>
                    </td>
                    <td>${osGood.osgname}</td>
                    <td>${osGood.osguid}</td>
                    <td>${osGood.osadminid}</td>
                    <td>${osGood.osadminname}</td>
                    <td>${osGood.ostime}</td>
                    <td>${osGood.osreason}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>

</div>
</body>
</html>
